import pygame

# 定义常量用大写
# 定义背景大小
SCREEN_RECT = pygame.Rect(0, 0, 480, 700)
# 定义帧率大小
FPS = 60


class GameSprite(pygame.sprite.Sprite):
    def __init__(self, image_name, speed=10):
        # pass
        super().__init__()
        self.image = pygame.image.load(image_name)
        self.rect = self.image.get_rect()
        self.speed = speed

    def update(self):
        self.rect.y += self.speed
